/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Module;

import Module.User;
import java.io.Serializable;

/**
 *
 * @author Vegard
 */
public class addUserRoles implements Serializable {
    private User user;
    private boolean fasilitator;
    private boolean secretary;
    private boolean customer;

    public addUserRoles(User user) {
        this.user = user;
        fasilitator = false;
        secretary = false;
        customer = false;
    }



    public addUserRoles(User user, boolean fasilitator, boolean secretary, boolean customer) {
        this.user = user;
        this.fasilitator = fasilitator;
        this.secretary = secretary;
        this.customer = customer;
    }

    public boolean isCustomer() {
        return customer;
    }

    public void setCustomer(boolean customer) {
        this.customer = customer;
    }

    public boolean isFasilitator() {
        return fasilitator;
    }

    public void setFasilitator(boolean fasilitator) {
        this.fasilitator = fasilitator;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public boolean isSecretary() {
        return secretary;
    }

    public void setSecretary(boolean secretary) {
        this.secretary = secretary;
    }

    public boolean isSomething(){
        return secretary || fasilitator || customer;
    }

}
